<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script type="module">
	// 1- 执行器函数一般用于处理异步行为
	// ?
	import Promise from "./index.js";
	const p = new Promise(function(resolve){
		setTimeout(()=>{
			resolve(100);// 异步将状态更改为成功，值为100
		},1000)
	});
	p.then(value=>{
		console.log("1-value",value);
	});
	console.log("2-over");
	
</script>
</html>